﻿using System;
using System.Threading;

namespace Redis简单的链接
{
    class Program
    {

        static void Main(string[] args)
        {

            while (true)
            {
                try
                {
                    Console.WriteLine(Redis注册事件.Instance.GetDatabase(0).StringGet("name"));
                }
                catch (Exception ex)
                {

                }
                Thread.Sleep(1000);
            }

            #region 基本链接
            {
                var s1 = RedisHelp.基本链接();
                var s2 = RedisHelp.基本链接By带密码();
                var s3 = RedisHelp.基本链接By带密码第二种配置();
            }
            #endregion

            #region 单例
            {
                var s1 = RedisHelp单例.Instance.GetDatabase(0).StringGet("name");
            }
            #endregion





        }
    }
}
